Appendix A. 64DD Leo Functions

This appendix provides descriptions of the 64DD Leo Library functions.

Initialization Functions

These are functions for creating the Leo Manager device driver.

LeoCreateLeoManager Start (disk boot)
LeoCJCreateLeoManager Start (Game Pak boot, Japanese version)
LeoCACreateLeoManager Start (Game Pak boot, English version)

Asynchronous Functions

These are functions for which the actual processing is performed in a different thread than the one called by the function, therefore also asynchronously with the calling thread.

LeoSpdlMotor Controls the 64DD motor and heads
LeoReadWrite Reads from and writes to 64DD
LeoSeek Executes the command to seek on 64DD
LeoReadDiskID Gets the disk ID
LeoReadRTC Reads the time of the built-in real-time clock
LeoSetRTC Sets the time of the built-in real-time clock

Synchronous Functions

These are functions that are performed in the same thread as the one called by the function.

LeoByteToLBA Converts a byte size to an LBA number
LeoLBAToByte Converts an LBA number to a byte size
LeoReadCapacity Calculates the usable area of the disk
LeoInquiry Checks the version number of the hardware and the software

Functions for Fonts

These are functions to get the address of font data stored in the 64DD built-in ROM.

LeoGetKAdr Gets the kanji storage offset address from the Shift JIS code sjis
LeoGetAAdr Gets the ASCII character storage offset address from the character code code
LeoGetAAdr2 Gets the ASCII character storage offset address from the character information data ccode

Other Functions

These are other important functions.

LeoReset Stops any further execution of commands sent to Leo Manager and clears the command queue
LeoResetClear Releases 64DD from the Reset state
LeoClearQueue Clears the Leo Manager command queue

Special Functions

These are functions that have various restrictions. They are not normally used.

LeoModeSelectAsync Changes the time for switching between 64DD modes
LeoRezero Recalibrates the 64DD
LeoTestUnitReady Checks the 64DD status